package tester;

import java.util.HashMap;

import utility.Util_Trading_XML;
import databean.ItemBean;

public class AddItemTester {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ItemBean item=new ItemBean();
		item.setTitle("hahahaha");
		item.setDescription("haha");
		item.setBuyItNowPrice("100");
		//item.setQuantity("6");
		item.setPayPalEmailAddress("gaga@gmail.com");
		item.setStartPrice("11");
		//item.setViewItemURL("http://www.google.com");
		HashMap<String,String> data=new HashMap<String,String>();
		data.put("Title", item.getTitle());
		data.put("Description", item.getDescription());
		data.put("PayPalEmailAddress", item.getPayPalEmailAddress());
		data.put("StartPrice", item.getStartPrice());
//		data.put("PictureURL", item.getViewItemURL());
		data.put("BuyItNowPrice", item.getBuyItNowPrice());
		Util_Trading_XML.sendRequest("AddItem.txt", data);

	}

}
